export const rules = {
    name: [
        {
            required: true, message: '用户名必须填写', trigger: 'blur'
        },
        {
            pattern: /^[A-Za-z0-9]{5,10}$/, message: '用户名长度有限制', trigger: 'blur'
        }
    ],
    password: [
        {
            required: true, message: '密码必须填写', trigger: 'blur'
        }
    ]
}